// src/main/java/com/xxxy/ljh/myapplication/Dao/UserDao.java
package com.xxxy.ljh.myapplication.Dao;

import com.xxxy.ljh.myapplication.model.User;
import java.util.List;

public interface UserDao {
    boolean register(User user);
    boolean login(String username, String password);
    boolean checkName(String name);
    User getUserByUsername(String username);
    User getUserById(int userId);
    int getUserRoleFromDatabase(String username);
    List<User> getAllUsers();
    boolean updateUser(User user);
}
